package com.jc.repository.shard.table.factory;


import com.jc.repository.dict.DataSource.ShardType;
import com.jc.repository.shard.table.ShardStrategy;

public class ShardFactory {

    public static ShardStrategy createShardFactory(ShardType type) {
        ShardStrategy factory = null;

        switch (type) {
            case DATA:
                factory = new DataShardFactory();
                break;
            case MOD:
                factory = new ModShardFactory();
                break;
            default:
                break;
        }
        return factory;
    }
}

